package com.satan.vote.service;

import com.mybatisflex.core.service.IService;
import com.satan.vote.entity.VoteItem;
import com.satan.vote.vo.ResultVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface VoteItemService extends IService<VoteItem> {
    void add(VoteItem voteItem);

    ResultVO uploadVoteItemImage(MultipartFile voteItemImage) throws IOException;

    ResultVO getRankByVoteId(Integer voteId);
}
